package com.cupk.pojo;


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.groups.Default;
import lombok.Builder;
import lombok.Data;
import org.apache.ibatis.annotations.Insert;

@Data
public class User {
    private Integer id;
    private String name;
    private Integer role;
    private String account;
    private String password;
    private String avatar;
    private String email;

    @JsonIgnore
    public String getPassword() {
        return password;
    }

    @JsonProperty
    public void setPassword(String password) {
        this.password = password;
    }
}
